package test.seasoning;

import test.Beverage;
import test.CondimentDecorator;

/**
 * @Author: Wyndem
 * @Description: 茶叶
 * @Date: Created in  2019-01-21 20:56
 * @Modified By:
 */
public class Tea extends CondimentDecorator {

    public Tea(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+"，茶叶";
    }

    @Override
    public Double cost() {
        return beverage.cost()+1;
    }
}
